#region using

using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

#endregion

namespace RealEstate.Web.Controller
{
	class ControllerRegistry
	{
		#region Private Members
		
		private Hashtable controllers;
		
		#endregion

		#region Constructors

		public ControllerRegistry() { }

		#endregion

		#region Public Methods

		public void Register(string strCommand, System.Type typeController)
		{
			this.Register(null, strCommand, typeController);
		}

		public void Register(string strDomainName, string strCommandName, System.Type controllerType)
		{
			string strFullCommand;
			
			if (strDomainName != null)
			{
				strFullCommand = strDomainName + "/" + strCommandName;
			}
			else
			{
				strFullCommand = strCommandName;
			}

			controllers.Add(strFullCommand, controllerType);
		}

		#endregion
	}
}
